<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>历史预约</title>
    <link rel="stylesheet" href="../css/page-health-login.css"/>
    <link rel="stylesheet" href="../plugins/elementui/index.css"/>
    <script src="../plugins/jquery/dist/jquery.min.js"></script>
    <script src="../plugins/healthmobile.js"></script>
    <script src="../plugins/datapicker/datePicker.js"></script>
    <script src="../plugins/vue/vue.js"></script>
    <script src="../plugins/vue/axios-0.18.0.js"></script>
    <script src="../plugins/elementui/index.js"></script>
    <link rel="stylesheet" href="../css/page-health-order.css" />
    <script>
        var id = getUrlParam("id");//预约id
    </script>
</head>
<body data-spy="scroll" data-target="#myNavbar" data-offset="150">
<div class="app" id="app">
    <!-- 页面头部 -->
    <div class="top-header">
        <span class="f-left"><i class="icon-back"></i></span>
        <span class="center">传智健康</span>
        <span class="f-right"><i class="icon-more"></i></span>
    </div>
    <div style="margin-left: 20px">信息详情</div>
    <div class="contentBox">
        <div class="userInfo">
            <form id='userInfo-form' :model="userInfo">
                <div class="input-row">
                    <label>开始日期</label> <i class="icon-date" class="pickbegintime"></i>
                    <input v-model="queryDate.beginTime" type="text" class="pickbegintime" readonly><br>
                    <label>结束日期</label> <i class="icon-date" class="pickendtime"></i>
                    <input v-model="queryDate.endTime" type="text" class="pickendtime" readonly>
                    <div class="btn yes-btn"><a @click="historyOrders()" href="#">查询历史预约</a></div>
                </div>
            </form>
        </div>
    </div>
    <div class="contentBox">
        <div class="list-column1">
            <ul class="list">
                <li class="list-item" v-for="setmeal in setmealList">
                    <a class="link-page" :href="'order_detail.html?id='+setmeal.id">
                        <img class="img-object f-left" :src="'http://puco9aur6.bkt.clouddn.com/'+setmeal.img" alt="图片丢失">
                        <div class="item-body">
                            <h4 class="ellipsis item-title">{{setmeal.memberName}}</h4>
                            <p class="ellipsis-more item-desc">{{setmeal.setmealName}}</p>
                            <p class="item-keywords">
                                <span>点击此处查看详情</span>
                            </p>
                        </div>
                    </a>
                </li>
            </ul>
        </div>
    </div>
    <!--<div class="list-column1">-->
        <!--<ul class="list">-->
            <!--<li class="list-item" v-for="order in orderList">-->
                <!--<a class="link-page" :href="'setmeal_detail.html?id='+order.id">-->
                    <!--<img class="img-object f-left" :src="" alt="图片丢失">-->
                    <!--<div class="item-body">-->
                        <!--<h4 class="ellipsis item-title">体检人:{{order.memberName}}</h4>-->
                        <!--<p class="ellipsis-more item-desc">预约套餐:{{order.setmealName}}</p>-->
                        <!--<p class="item-keywords">-->
                            <!--<span>点击查看预约详情</span>-->
                        <!--</p>-->
                    <!--</div>-->
                <!--</a>-->
            <!--</li>-->
        <!--</ul>-->
    <!--</div>-->
</div>
<script>
    var vue = new Vue({
        el: '#app',
        data: {
            setmealList:[],//套餐列表数据

            queryDate: {}
        },

        methods: {
            historyOrders() {
                //发送axios请求查询
                axios.post("/order/historyOrders.do?id=" + id, this.queryDate).then((res) => {
                    if (res.data.flag){
                        this.setmealList=res.data.data;
                    } else {

                    }
                });
            }
        },
        mounted() {
        }

    })
</script>
<script>
    //日期控件
    var calendar = new datePicker();
    calendar.init({
        'trigger': '.pickbegintime',/*按钮选择器，用于触发弹出插件*/
        'type': 'date',/*模式：date日期；datetime日期时间；time时间；ym年月；*/
        'minDate': getSpecifiedDate(new Date("2009/1/1"), 1),/*最小日期*/
        'maxDate': getSpecifiedDate(new Date(), 30),/*最大日期*/
        'onSubmit': function () { /*确认时触发事件*/
            //var theSelectData = calendar.value;
        },
        'onClose': function () { /*取消时触发事件*/
        }
    });
    var calendar1 = new datePicker();
    calendar1.init({
        'trigger': '.pickendtime',/*按钮选择器，用于触发弹出插件*/
        'type': 'date',/*模式：date日期；datetime日期时间；time时间；ym年月；*/
        'minDate': getSpecifiedDate(new Date("2009/1/1"), 1),/*最小日期*/
        'maxDate': getSpecifiedDate(new Date(), 30),/*最大日期*/
        'onSubmit': function () { /*确认时触发事件*/
            //var theSelectData = calendar.value;
        },
        'onClose': function () { /*取消时触发事件*/
        }
    });


</script>
</body>
</html>